package com.andy.note.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages= {"com.andy.note"})
@EnableTransactionManagement
@EnableRetry
public class App {
    public static void main(String[] args) {
        System.out.println(App.class.getResource(""));
        System.out.println(App.class.getResource("/"));
        System.out.println(App.class.getResource("App.class"));
        System.out.println(App.class.getResource("/App.class"));
//        file:/D:/AndyJob/note/target/classes/com/andy/note/boot/
//        file:/D:/AndyJob/note/target/classes/
//        file:/D:/AndyJob/note/target/classes/com/andy/note/boot/App.class
//        null
        ConfigurableApplicationContext run = SpringApplication.run(App.class, args);
        
//        String[] beanDefinitionNames = run.getBeanDefinitionNames();
//        for (String str : beanDefinitionNames) {
//            System.out.println(str);
//            
//        }
    }
}